< previous page page_729 next page >

Page 729
    sqlforwardonly = 0
    sqlKeyset = 1
    sqldynamic = 2
    sqlStatic = 3
End Enum

'
' sqlerror type
Public Enum sqlErrorType
    sqlSuccess = 0
    sqlSuccessWithInfo = 1
    sqlerr = -1
    sqlNoDataFound = 100
End Enum

Public Enum sqlStatement
    sqlClose = 0
    sqlDrop = 1
    sqlUnbind = 2
    sqlResetParams = 3
End Enum


' shared ODBC handle properties:
Public hEnv As Long
Public hDbc As Long
Public hStmt As Long
Public NumCols As Integer
'
' local storage for properties
Private strDataSource As String
Private strUserID As String
Private strPassword As String
Private strSQL As String
Private intRecordCount As Integer
Private strTable As String
Private strKey As String
Private intCursorDriver As Integer
Private intLockType As Integer
Private intResultSetType As Integer

' internal use
Dim intRecNum As Integer
Most of the items in Listing 19.3 define shared Public variables or enumerated data types for properties of the new class object. You use these values and storage locations both internally within the new class and from your external programs that call this class.
Now define the various properties by using the Visual Basic Property Let and Property Get statements. Listing 19.4 shows the complete listing of all property routines for this class object.

 
< previous page page_729 next page >

If you like this book, buy it!